<div class="row">
<div class="button-container mb10">
	<?php 
    echo CHtml::link('返回列表',$this->createUrl('dictionary/index'),array('class'=>'button button-primary'));
    echo '&nbsp;&nbsp;';
    echo CHtml::link('添加选项',$this->createUrl('dictionary/addoption',array('did'=>$dict->did)),array('class'=>'button button-success'));?>
</div>
<table class="table table-bordered table-striped">
    <thead>
    	<tr>
            <th class="bl0 tc" style="width:50px;"><input type="checkbox" class="btn_all" /> ID</th>
            <th>选项名称</th>
            <th>选项值</th>
            <th style="width:200px;"class="br0">操作</th>
        </tr>
    </thead>
    <tbody>
    	<?php foreach ($model as $v){?>
        <tr title="id=<?php echo $v->did;?>">
            <td align="center"><input type="checkbox" class="ids" name="ids[]" value="<?php echo $v->id;?>" /></td>
            <td><?php echo $v->option_name;?></td>
            <td><?php echo $v->value;?></td>
            <td>
            	<?php
            		echo CHtml::link('编辑',$this->createUrl('dictionary/updateoption',array('id'=>$v->id)),array('class'=>'table-operate-a'));
                    echo CHtml::link('删除','javascript:void(0);', array('class'=>'delete table-operate-a' ,'url'=>$this->createUrl('dictionary/deleteoption',array('id'=>$v->id))));
            	?>
            </td>
        </tr>
       	<?php }?>
    </tbody> 
 </table>
 <table class="info_table" border="0">
	<tr>
        <td class="footer-tb">
           <?php
           		$this->widget('CLinkPager',array(  
		           'header'=>'分页：',  
		           'firstPageLabel' => '首页',  
		           'lastPageLabel' => '末页',  
		           'prevPageLabel' => '上一页',  
		           'nextPageLabel' => '下一页',  
		           'pages' => $pages,  
		           'maxButtonCount'=>10,  
		        ));  
           ?>
        </td>
    </tr>
</table>
<div class="table-bottom-operate">
    <div class="inline pull-left table-operate">
        <?php echo CHtml::link('批量删除','javascript:void(0);',array('class'=>'button button-primary deleteall','url'=>$this->createUrl('dictionary/deleteoptionall'))); ?>
    </div>
    <div class="inline pull-right page">
        <?php $this->widget('LinkPager',array('pages' => $pages)); ?>
    </div>
	
</div>
</div>